body,
html {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  height: 100%;
  padding: 0;
  margin: 0;
}
// 减小弹出菜单的项目高度
.el-menu--popup {
  .el-menu-item {
    height: 36px;
    line-height: 36px;
  }
  .el-submenu__title {
    height: 36px;
    line-height: 36px;
  }
}
.el-tooltip__popper.is-dark {
  color: #fff;
}
.el-tooltip__popper.is-light {
  color: #000;
}

.el-dialog {
  border-radius: 4px;
  padding: 20px 15px 10px 15px;
  box-sizing: border-box;
  margin: 0 auto;
  // height: 600px;
  .el-dialog__header {
    padding: 0 20px 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);

    .el-dialog__title {
      font-size: 16px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      line-height: 24px;
    }
  }
  .el-dialog__body {
    margin: 30px 20px;
    padding: 0;
    box-sizing: border-box;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .el-dialog__footer {
    border-top: 1px solid rgba(0, 0, 0, 0.09);
    padding: 10px 5px 0 5px;
  }
}

.el-form-item__label {
  font-family: SourceHanSansCN-Regular, SourceHanSansCN;
  font-weight: 400;
}
.el-form-item {
  .el-select {
    width: 100%;
  }
}

.el-select-dropdown {
  .el-select-dropdown__item {
    padding: 0 20px;
  }
}

.el-drawer {
  box-sizing: border-box;
  padding: 0 15px;
  .el-drawer__header {
    font-size: 16px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    line-height: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
    padding: 20px 20px 15px;
    margin-bottom: 0;
  }
  .el-drawer__body {
    box-sizing: border-box;
    overflow: hidden;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    .drawer-content {
      max-height: calc(100% - 65px);
      overflow-y: auto;
      .el-form {
        width: 70%;
        margin: 0 auto;
      }
    }
  }
  .drawer-footer {
    position: absolute;
    width: calc(100% - 30px);
    height: 55px;
    line-height: 55px;
    text-align: right;
    bottom: 0;
    left: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
  }
}

// 整体框架结构
.layout-header-aside-group {
  height: 100%;
  width: 100%;
  min-width: 900px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  // 背景上面的半透明遮罩
  .layout-header-aside-mask {
    @extend %full;
  }
  // 内容层
  .layout-header-aside-content {
    @extend %full;
    .theme-header {
      height: 60px;
      .theme-header-menu {
        overflow: hidden;
        margin: 0 30px;
        &.is-scrollable {
          position: relative;
          padding: 0 20px;
          .theme-header-menu__prev,
          .theme-header-menu__next {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
          }
        }
        .theme-header-menu__content {
          overflow: hidden;
          .theme-header-menu__scroll {
            white-space: nowrap;
            position: relative;
            -webkit-transition: -webkit-transform 0.3s;
            transition: -webkit-transform 0.3s;
            transition: transform 0.3s;
            transition: transform 0.3s, -webkit-transform 0.3s;
            transition: transform 0.3s, -webkit-transform 0.3s;
            float: left;
          }
        }
        .theme-header-menu__prev,
        .theme-header-menu__next {
          height: 60px;
          position: absolute;
          top: 0;
          font-size: 20px;
          cursor: pointer;
          display: none;
        }
        .theme-header-menu__prev {
          left: 0;
          border-top-left-radius: 2px;
          border-bottom-left-radius: 2px;
        }
        .theme-header-menu__next {
          right: 0;
          border-top-right-radius: 2px;
          border-bottom-right-radius: 2px;
        }
      }
    }
    .theme-container {
      .theme-container-aside {
        position: relative;

        .layout-header-aside-menu-side {
          @extend %full;
          overflow: hidden;
          // border-radius: 30px;
        }
      }
      .theme-container-transition {
        transition: width 0.3s;
      }
      .theme-container-main {
        padding: 0px;
        position: relative;
        overflow: hidden;
        .theme-container-main-layer {
          position: absolute;
          top: 0px;
          bottom: 0px;
          left: 0px;
          right: 0px;
        }
        .theme-container-main-body {
          position: relative;
          margin-bottom: 20px;
          .btn-container {
            margin: 0px 0 8px 0;
            .el-button--text {
              border: none;
              &:hover,
              &:active,
              &:focus {
                background-color: transparent;
              }
            }
            &.el-col {
              text-align: right;
            }
          }
          .el-table {
            &::before {
              background-color: transparent;
            }
            .el-table__header-wrapper {
              tr,
              th.el-table__cell {
                font-family: SourceHanSansCN-Medium, SourceHanSansCN;
                font-weight: 500;
              }
            }
            .el-table__row.el-table__row--level-0 {
              .el-table_1_column_2 {
                font-family: SourceHanSansCN-Medium, SourceHanSansCN;
                font-weight: 500;
              }
            }

            .el-table__row.el-table__row--level-1 {
              position: relative;
            }
            [class*='el-table__row--level'] .el-table__expand-icon {
              background: rgba(90, 139, 255, 0.22);
              border-radius: 2px;
              margin-right: 8px;
            }
          }

          .operation-btn {
            .el-button {
              &::after {
                content: '';
                display: inline-block;
                width: 1px;
                height: 10px;
                background: rgba(0, 0, 0, 0.09);
                margin-left: 13px;
              }
              &:last-child::after {
                display: none;
              }
            }
            .btn-danger {
              color: $color-danger;
              margin-left: 13px;
            }
          }
        }
      }
    }
  }
}

.theme-dark .theme-container-aside {
  margin-bottom: 20px;
}

// 主题公用
.layout-header-aside-group {
  &.grayMode {
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: grayscale(100%);
    filter: gray;
  }
  // 主体
  .layout-header-aside-content {
    // [布局] 顶栏
    .theme-header {
      // logo区域
      .logo-group {
        float: left;
        text-align: center;
        position: relative;
        display: flex;
        padding: 10px 0 0 14px;
        box-sizing: border-box;

        img {
          width: 37px;
          height: 27px;
          margin: 7px 5px 0 0;
        }
        .logo-title {
          flex-grow: 1;
          p {
            margin: 0;
            font-size: 18px;
            font-family: Overpass-Bold, Overpass;
            font-weight: bold;
            line-height: 26px;
            width: 100%;
            text-align: left;
            &:last-of-type {
              font-size: 12px;
              transform: scale(0.8);
              transform-origin: 0;
              font-family: HarmonyOS_Sans;
              line-height: 12px;
              white-space: nowrap;
            }
          }
        }
      }
      .logo-transition {
        transition: width 0.3s;
      }
      // 折叠侧边栏切换按钮
      .toggle-aside-btn {
        float: left;
        height: 60px;
        width: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        @extend %unable-select;
        i {
          font-size: 20px;
          margin-top: 4px;
        }
        svg {
          width: 20px;
          height: 20px;
        }
      }
      // [菜单] 顶栏
      .el-menu {
        float: left;
        border-bottom: none;
        background-color: transparent;
        %header-menu-item {
          @extend %unable-select;
          i.fa {
            font-size: 16px;
            margin-right: 4px;
          }
        }
        .el-menu-item {
          @extend %header-menu-item;
          border-bottom: none;
        }
        .el-submenu {
          @extend %header-menu-item;
          .el-submenu__title {
            border-bottom: none;
          }
        }
      }
      // 顶栏右侧的按钮
      .header-right {
        float: right;
        height: 60px;
        display: flex;
        align-items: center;
        .btn-text {
          padding: 14px 9px;
          border-radius: 4px;
          font-weight: 500;
          margin: 0px !important;
          &.el-color-picker.el-color-picker--mini {
            padding: 9px 6px;
          }
        }
        .user-icon {
          vertical-align: middle;
          margin-left: 5px;
          margin-right: -3px;
        }
        .el-icon-arrow-down {
          margin-left: -3px;
          font-size: 12px;
        }
        .el-dropdown {
          @extend %unable-select;
        }
      }
    }
    // [布局] 顶栏下面
    .theme-container {
      // 侧边栏
      .theme-container-aside {
        %theme-container-aside-menu-icon {
          width: 20px;
          text-align: center;
          font-size: 16px;
        }
        // [菜单] 正常状态
        .el-menu {
          @extend %unable-select;
          background-color: transparent;
          border-right: none;
          .el-menu-item {
            height: 48px;
            line-height: 48px;
            i {
              @extend %theme-container-aside-menu-icon;
            }
          }
        }
        .el-submenu {
          @extend %unable-select;
          .el-submenu__title {
            i {
              @extend %theme-container-aside-menu-icon;
            }
            .el-submenu__icon-arrow {
              margin-top: -10px;
            }
          }
        }
        // 菜单为空的时候显示的信息
        .layout-header-aside-menu-empty {
          height: 160px;
          margin: 10px;
          margin-top: 0px;
          border-radius: 4px;
          @extend %unable-select;
          i {
            font-size: 30px;
            margin-bottom: 10px;
          }
          span {
            font-size: 14px;
          }
        }
        // [菜单] 折叠状态
        .el-menu--collapse {
          background-color: transparent;
          .el-submenu__title {
            text-align: center;
          }
        }
      }
      // 右下 主体
      .theme-container-main {
        // 主体部分分为多页面控制器 和主体
        .theme-container-main-header {
          height: 36px;
          margin-bottom: 8px;
          // 多页面控制器
          .multiple-page-control-group {
            height: 100%;
            padding-right: 20px;

            .multiple-page-control-content {
              overflow: auto;
              position: relative;
              .multiple-page-control-content-inner {
                .multiple-page-control {
                  .el-tabs__header.is-top {
                    margin: 0px;
                    border: none;
                  }
                  .el-tabs__nav-wrap.is-scrollable {
                    padding: 0 25px;
                  }
                  .el-tabs__nav-next,
                  .el-tabs__nav-prev {
                    line-height: 36px;
                  }
                  .el-tabs__nav-prev {
                    left: 5px;
                  }
                  .el-tabs__nav-next {
                    right: 5px;
                  }
                  .el-tabs__nav {
                    overflow: hidden;
                    border: none;
                    .el-tabs__item {
                      height: 36px;
                      line-height: 36px;
                      padding: 0 15px;
                      border: none;
                      .title::before {
                        content: '';
                        display: inline-block;
                        width: 4px;
                        height: 4px;
                        background: #7f7f7f;
                        border-radius: 8px;
                        vertical-align: middle;
                        margin-right: 5px;
                      }
                    }
                  }
                }
              }
            }
            .multiple-page-control-btn {
              position: relative;
              bottom: -1px;
              .el-dropdown {
                .el-button-group {
                  .el-button:first-child {
                    border-bottom-left-radius: 0px;
                  }
                  .el-button:last-child {
                    border-bottom-right-radius: 0px;
                  }
                }
              }
            }
          }
        }
        // 主体
        .theme-container-main-body {
          // 布局组件
          .container-component {
            @extend %full;
            overflow: hidden;
            // 填充式布局组件
            .container-full {
              position: absolute;
              top: 0px;
              right: 20px;
              bottom: 0px;
              left: 0px;
              display: flex;
              flex-direction: column;
              overflow: hidden;
              .container-full__header {
                padding: 20px;
              }
              .container-full__body {
                flex-grow: 1;
                height: 100%;
                padding: 20px 20px;
                overflow: auto;
                position: relative;
              }
              .container-full__footer {
                padding: 20px;
              }
            }
            // 填充式布局组件 - 滚动优化
            .container-full-bs {
              position: absolute;
              top: 0px;
              right: 20px;
              bottom: 0px;
              left: 0px;
              display: flex;
              flex-direction: column;
              overflow: hidden;
              .container-full-bs__header {
                padding: 20px;
              }
              .container-full-bs__body {
                flex-grow: 1;
                overflow: hidden;
                position: relative;
                .container-full-bs__body-wrapper-inner {
                  padding: 20px;
                  position: relative;
                }
              }
              .container-full-bs__footer {
                padding: 20px;
              }
            }
            // 隐形布局组件
            .container-ghost {
              position: absolute;
              top: 0px;
              right: 20px;
              bottom: 0px;
              left: 0px;
              display: flex;
              flex-direction: column;
              overflow: hidden;
              .container-ghost__header {
                padding: 20px;
                border-bottom-left-radius: 4px;
                border-bottom-right-radius: 4px;
              }
              .container-ghost__body {
                flex-grow: 1;
                overflow: auto;
                position: relative;
              }
              .container-ghost__footer {
                padding: 20px;
                border-top-left-radius: 4px;
                border-top-right-radius: 4px;
              }
            }
            // 隐形布局组件 - 滚动优化
            .container-ghost-bs {
              position: absolute;
              top: 0px;
              right: 20px;
              bottom: 0px;
              left: 0px;
              display: flex;
              flex-direction: column;
              overflow: hidden;
              .container-ghost-bs__header {
                padding: 20px;
                border-bottom-left-radius: 4px;
                border-bottom-right-radius: 4px;
              }
              .container-ghost-bs__body {
                flex-grow: 1;
                overflow: hidden;
                position: relative;
              }
              .container-ghost-bs__footer {
                padding: 20px;
                border-top-left-radius: 4px;
                border-top-right-radius: 4px;
              }
            }
            // 卡片式布局组件
            .container-card {
              position: absolute;
              top: 0px;
              right: 20px;
              bottom: 0px;
              left: 0px;
              display: flex;
              flex-direction: column;
              overflow: hidden;
              .container-card__header {
                padding: 20px;
              }
              .container-card__body {
                flex-grow: 1;
                overflow: auto;
                .container-card__body-card {
                  position: relative;
                  margin-bottom: 20px;
                  padding: 20px;
                  border-bottom-left-radius: 4px;
                  border-bottom-right-radius: 4px;
                }
              }
              .container-card__footer {
                padding: 20px;
                border-top-left-radius: 4px;
                border-top-right-radius: 4px;
              }
            }
            // 卡片式布局组件 - 滚动优化
            .container-card-bs {
              position: absolute;
              top: 0px;
              right: 20px;
              bottom: 0px;
              left: 0px;
              display: flex;
              flex-direction: column;
              overflow: hidden;
              .container-card-bs__header {
                padding: 20px;
              }
              .container-card-bs__body {
                position: relative;
                flex-grow: 1;
                overflow: hidden;
                .container-card-bs__body-wrapper-inner {
                  padding-bottom: 20px;
                }
                .container-card-bs__body-card {
                  position: relative;
                  padding: 20px;
                  border-bottom-left-radius: 4px;
                  border-bottom-right-radius: 4px;
                }
              }
              .container-card-bs__footer {
                padding: 20px;
                border-top-left-radius: 4px;
                border-top-right-radius: 4px;
              }
            }
          }
        }
      }
      .theme-tab-container {
        padding: 10px 20px 5px;
        margin-bottom: 10px;
        .card-title {
          display: flex;
          justify-content: space-between;
          margin-bottom: 10px;
          align-items: center;
          .name {
            font-size: 16px;
            // font-family: SourceHanSansCN-Medium, SourceHanSansCN;
            font-weight: 500;
            // color: #4d4d4d;
          }
          .el-input {
            width: 186px;
          }
        }
        .card-box {
          overflow-x: auto;
          white-space: nowrap;
          .card-content {
            display: inline-block;
            width: 226px;
            height: 100px;
            margin-right: 10px;
            margin-bottom: 8px;
            border-radius: 4px;
            color: #fff;
            font-size: 16px;
            line-height: 100px;
            text-align: center;
            cursor: pointer;
            box-sizing: border-box;

            &:last-of-type {
              margin-right: 0;
            }
            &:hover,
            &.is-active {
              box-shadow: 0px 2px 7px 0px rgba(0, 0, 0, 0.32),
                0px 1px 4px 0px rgba(183, 183, 183, 0.06);
            }
          }
          img {
            cursor: pointer;
            height: 100%;
          }
        }
      }
      .theme-main-container {
        padding: 20px;
      }
      .card-box-empty {
        height: 100px;
        border-radius: 4px;
        margin-bottom: 8px;
        i {
          font-size: 30px;
          margin-bottom: 10px;
        }
        span {
          font-size: 14px;
        }
      }
    }
  }
}

.theme-dark {
  .theme-container-aside {
    overflow: auto !important;
  }
  .container-full {
    border: none !important;
  }
  .theme-container {
    position: relative;
    &.header-top {
      &::before,
      &::after {
        display: none;
      }
    }

    &::before {
      content: '';
      position: absolute;
      left: 220px;
      top: 0;
      width: 15px;
      height: 15px;
      background: radial-gradient(circle at 100% 0%, transparent 15px, #2a2d3e 0);
      transform: rotate(90deg);
    }
    &::after {
      content: '';
      position: absolute;
      left: 220px;
      bottom: 20px;
      width: 15px;
      height: 15px;
      background: radial-gradient(circle at 100% 0%, transparent 15px, #2a2d3e 0);
    }
    &.asideCollapse {
      &::before,
      &::after {
        left: 65px;
      }
    }
  }
  .theme-container-aside {
    border-radius: 20px 0 0 20px;
    position: relative;
    overflow: auto !important;
    // .layout-header-aside-menu-side {
    //   overflow: auto !important;
    // }
    // .layout-header-aside-menu-side::after {
    //   content: '';
    //   position: absolute;
    //   z-index: 9999;
    //   right: -10px;
    //   bottom: 0;
    //   width: 20px;
    //   height: 20px;
    //   background: radial-gradient(circle at 100% 0%, transparent 20px, #00caf5 0);
    // }
  }
  .multiple-page-control-content,
  .container-full__body,
  .container-ghost__body {
    border-radius: 20px 0 0 20px;
  }
}

// 表单设计器
.form-design {
  overflow: hidden;
  max-height: 100vh;
  .el-drawer {
    position: relative;
    padding: 0;
  }
  .el-drawer__header {
    padding: 10px 15px;
  }
  .el-drawer__body {
    padding: 0;
    overflow: hidden;
  }
  .el-dialog__headerbtn {
    top: 15px;
  }
}

.ql-toolbar.ql-snow {
  .ql-stroke,
  .ql-fill {
    stroke: currentColor;
  }
}
.ql-background.ql-picker.ql-color-picker .ql-fill {
  stroke: none;
}
.ql-toolbar.ql-snow .ql-picker-label {
  line-height: 24px;
  svg {
    vertical-align: middle;
  }
}
.ql-snow .ql-picker {
  height: unset;
}

// 流程设计器
.flow-design {
  .el-dialog {
    margin: 0;
  }
  .el-dialog__body {
    padding: 0;
  }
  .my-process-designer__container {
    background-color: #a9a9a9;
    color: #606266;
    border-radius: 4px;
    overflow: hidden;
  }
  .el-drawer__body {
    overflow: hidden;
  }
}

.radius {
  .el-drawer {
    border-radius: 20px 20px 0px 0px;
  }
}

/*谷歌*/
/* 滚动条凹槽的颜色，还可以设置边框属性 */
*::-webkit-scrollbar-track-piece {
  background-color: #f1f1f1;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
}

/* 滚动条的宽度 */
*::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* 滚动条的设置 */
*::-webkit-scrollbar-thumb {
  background-color: #cfcfcf;
  -webkit-border-radius: 2em;
  -moz-border-radius: 2em;
  border-radius: 2em;
  background-clip: padding-box;
}

/* 滚动条鼠标移上去 */
*::-webkit-scrollbar-thumb:hover {
  background-color: #bbb;
}

/*火狐*/
* {
  scrollbar-color: #cfcfcf #f1f1f1; /* 滑块颜色  滚动条背景颜色 */
  scrollbar-width: thin; /* 滚动条宽度有三种：thin、auto、none */
}
